import service from "@/utils/service";
import type { LoginModel } from "./index.d";
import type { BaseResponse } from "../index.d";
export const useLoginApi = (data: any): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/auth/login`,
    method: "POST",
    data,
  });
};
export const useGetCaptchaApi = (): Promise<BaseResponse<any>> => {
  return service({
    url: `/v1/auth/captcha`,
    method: "GET",
  });
};
